Search
Other Articles Anywhere questions
Forum

Improvement to {article} query

Andrea Malalana's Avatar Andrea Malalana
I noticed that when using the single {article} ... {/article} query, with no article specified, so basically just {article} that indicates wanting to use the current article...

The query does this where condition:

(`article`.`id` = 15558 OR `article`.`alias` = '15558' OR `article`.`title` = '15558')

In this case, it would be better to just do the where like this:

(`article`.`id` = 15558)

...which is much much faster (0.0003 vs 0.03). What do you think?
Peter van Westen's Avatar Peter van Westen ADMIN
Not here. I cannot reproduce that.
When using {article} ... {/article} it only uses:
`article`.`id` = 123
Please post a rating at the Joomla! Extensions Directory
Andrea Malalana's Avatar Andrea Malalana
Ah my bad, this was actually coming from an instance of {article [id]}. So it's something I need to fix on my end with {article id="[id]"}. You can close this 😁
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription